<!--
 * @Description: 
 * @Author: xiongkuobiao
 * @Date: 2023-02-07 10:17:11
 * @LastEditors: xiongkuobiao
 * @LastEditTime: 2023-04-23 11:10:08
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
        .left {
            width: 200px;
            height: 100px;
            background: green;
            float: left;
        }

        .right {
            height: 200px;
            background: pink;
            /* 创建BFC */
            overflow: hidden;
        }
    </style>
</head>

<body>

    <div class="left"></div>
    <div class="right"></div>
</body>
<script>
    // function fetch(params) {
    //     return new Promise((resolve, reject) => {
    //         let xhr = new XMLHttpRequest()
    //         xhr.open()
    //         xhr.send()
    //         xhr.onreadystatechange = function () {
    //             if (state == 200) {
    //                 resolve()
    //             } else {
    //                 reject()
    //             }
    //         }
    //     })
    // }
</script>

</html>